/*******************************************************

	Printing Gantt Chart
	Course	: CSC3150
	Author	: Tsang Hing Chung
	Date	: 29 September, 2009
	Version	: 1.0

*********************************************************/

#ifndef __GANTT_CHART_H__
#define __GANTT_CHART_H__

#include <sys/types.h>
#include <math.h>
#include "linkedList.h"

// rounding of x and typecast to integer
#define ROUND(x) ((int)floor( (x) + 0.5 ))

/**********************************************
  function: printGanttChart
  parameters:
  	head		: The first node of the list
	cur_time 	: The elapsed time in second
 **********************************************/
void printGanttChart(struct jobNode *head, time_t cur_time);

#endif
